package Pojo;

import java.util.Objects;

//房间状态实体类
public class RoomStatus {
    private Integer room_status_id;//房间状态id（主键）
    private String room_status_name;//房间状态名称

    @Override
    public String toString() {
        return "RoomStatus{" +
                "room_status_id=" + room_status_id +
                ", room_status_name='" + room_status_name + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        RoomStatus that = (RoomStatus) o;
        return Objects.equals(room_status_id, that.room_status_id) &&
                Objects.equals(room_status_name, that.room_status_name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(room_status_id, room_status_name);
    }

    public Integer getRoom_status_id() {
        return room_status_id;
    }

    public void setRoom_status_id(Integer room_status_id) {
        this.room_status_id = room_status_id;
    }

    public String getRoom_status_name() {
        return room_status_name;
    }

    public void setRoom_status_name(String room_status_name) {
        this.room_status_name = room_status_name;
    }

    public RoomStatus() {
    }

    public RoomStatus(Integer room_status_id, String room_status_name) {
        this.room_status_id = room_status_id;
        this.room_status_name = room_status_name;
    }
}
